<?php

require_once  __DIR__ . '/includes/authenticate.php';

include_once __DIR__ . '/db_bb_connect.php';

require_once __DIR__ . '/includes/BasketbalFunctions.php';

include __DIR__ . '/mainpage.php';

$basketbalfunctions = new BasketbalFunctions();

?>
<style type="text/css">

.checkbox
{
	float: left;
}
.checkboxtext
{
	padding-left: 10px;
}

</style>
<div id="container-fluid">
	
	    <div class="row">
     <div class="col-md-8 col-md-offset-2 text-center" >
          <h3 class="text-center">Video Feedback Overview</h3>
     <p> <a class="btn btn-default" href="./video_feedback_archive.php">Archive</a> </p>
<!---     <form class="text-center"> 
     	<input type="checkbox" name="visible_only[]" value="true" class="checkbox visible_only"> <div class="checkboxtext"> Currently Visible Items Only </div>
     </form> --->

     </div>
   </div>

	<div class="row">
		<div class="col-md-6 col-md-offset-3">
			<div id="results"></div>
		</div>
	</div>

</div>


 	<script type="text/javascript">
 		$( "form .checkbox" ).on( "click", function( event ) {
			  postData = $( this.form ).serialize();
			  callDataviewerPage(postData);
			  event.preventDefault();
		});

 		function callDataviewerPage(e, postData){
		  $.ajax({
			  type: "POST",
			  url: "./video_feedback_overview_results.php",
			  data: this.postData,
			  success: function(data) {
				  $("#results").html(data);
				  }
			  }); 
			  e.preventDefault();
		};

		$( document ).ready( function loadAll() {
			 $.ajax({
			  type: "POST",
			  url: "./video_feedback_overview_results.php",
			  success: function(data) {
				  $("#results").html(data);
				  }
			  }); 
		});

 	</script>

